<template>
	<view class="index_head" :style="{paddingTop:top+'px'}">
		<view class="welcom" :style="{height:statusBarHeight+'px'}">
			<slot></slot>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				statusBarHeight: 0,
				top:0
			}
		},
		mounted() {
			let res = uni.getSystemInfoSync();
			let menu = wx.getMenuButtonBoundingClientRect();
			this.top = menu.top
			this.statusBarHeight = menu.height
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.index_head{
		width: 100%;
		.welcom{
			width: 100%;
		}
	}
</style>